<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
    <title>我的</title>
    <link href="../Content/css/style.css" rel="stylesheet">
    <script src="../Content/js/rem.js"></script>
    <style>
        .gybox{
            padding: 0;
        }
    </style>
</head>
<body>
<div id="loading">
    <img src="../Content/imgs/kbloading.gif">
</div>
    <div class="wrap" >
        <header class="ck-mybg">
            <div class="mytx" onclick="getInfo()">
                <img id="img">
            </div>
            <p class="ck-name"></p>
            <p class="ck-rzzt">未认证</p>
        </header>
        <ul class="gybox">
            <li data-id="0"> 我要发布委托<span></span></li>
            <li data-id="1">我的抢单 <span></span></li>
            <li data-id="2" style="border: none">我的催单 <span></span></li>
        </ul>
    </div>

    <div class="weui-tabbar">
        <a href="javascript:;" class="weui-tabbar__item ">
                    <span style="display: inline-block;position: relative;">
                        <img src="../Content/imgs/ckbar1.png"  class="weui-tabbar__icon ">
                        <img src="../Content/imgs/iconbar1-ac.png"  class="weui-tabbar__icon js-active dn">
                    </span>
            <p class="weui-tabbar__label">大厅</p>
        </a>
        <a href="javascript:;" class="weui-tabbar__item weui-bar__item_on">
            <img src="../Content/imgs/ckbar2.png"  class="weui-tabbar__icon js-active dn">
            <img src="../Content/imgs/iconbar2-ac.png"  class="weui-tabbar__icon ">
            <p class="weui-tabbar__label">我的</p>
        </a>
    </div>
    <script src="../Content/js/jquery-2.2.4.min.js"></script>
<script>
    //var url=" http://j.ccyjs.cn/DiscuzServer";
    //获取页面传递参数
    let urs=window.location.search;
    let strs=urs.substring(1);
    let silp=strs.split('&');
    let res={};
    for (let i=0;i<silp.length;i++){
        res[silp[i].split("=")[0]]=silp[i].split("=")[1];
    }
    $.ajax({
        type : "GET",
        url :localStorage.url+"/billList/getMeDetails",
        data :{
            id:localStorage.id
        },
        success : function(ro) {
            console.log(ro);
            $("#img").attr("src",ro.tou);
            $(".ck-name").html(ro.name);
            if(ro.isaudit!=0){
                $(".ck-rzzt").html("已认证")
            }
            $("#loading").hide();

        },
        error : function(err) {
            alert(err);
        }
    });
    var winH=$(window).height();
    $(".wrap").css("height",winH);
    $(function(){
        $(".weui-tabbar a").on('click',function () {
            var index=$(this).index();
            if(index=="0"){
                window.location.href="ck-index.html"
            }else {
                window.location.href="ck-my.html"
            }
        });
        $(".gybox li").on('click',function () {
            var id=$(this).attr("data-id");
            if(id=="0"){
                window.location.href="ck-fabucuidan.html"
            }else if(id=="1"){
                window.location.href="ck-myqd.html"
            }else if(id=="2"){
                window.location.href="ck-mycd.html"
            }
        })

    });
    function getInfo() {
        window.location.href="ck-myinfo.html"
    }

</script>
</body>
</html>
